#include <gtest/gtest.h>
#include <iostream>
#include "Data.h"

TEST(DataTest, CreateFloat) {
	Data* d = Data::createFloat(37.2f);
	EXPECT_FLOAT_EQ(d->getFloatValue(), 37.2f);
}

TEST(DataTest, CreateBoolean) {
	Data* d = Data::createBoolean(true);
	EXPECT_EQ(d->getBooleanValue(), true);	
}

TEST(DataTest, CreateInt) {
	Data* d = Data::createInt(42);
	EXPECT_EQ(d->getIntValue(), 42);
}

TEST(DataTest, CreateString) {
	Data* d = Data::createString("Hello World");
	EXPECT_EQ(d->getStringValue(), "Hello World");
}